<?php $this->load->view('admin/inc/header'); ?>
<div id="maincontainer">
    <?php $this->load->view('admin/inc/menu_admin'); ?>
</div><!--end #maincontainer-->
<div class="content_ng">
    <h1><?php echo $title; ?></h1>
    <?php echo $message; ?>
    <form method="post" action="<?php echo $action; ?>">
        <div class="data">
            <table>
                <tr>
                    <td width="30%">ID_User</td>
                    <td><input type="text" name="id_user" disabled="disable" class="text" value="<?php echo set_value('id_user'); ?>"/></td>
                    <input type="hidden" name="id_user" value="<?php echo set_value('id_user',$this->form_data->id_user); ?>"/>
                </tr>
                <tr>
                    <td valign="top">Full Name<span style="color:red;">*</span></td>
                    <td><input type="text" name="fullname" class="text" value="<?php echo set_value('fullname',$this->form_data->fullname); ?>"/>
                        <?php echo form_error('fullname'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">user<span style="color:red;">*</span></td>
                    <td><input type="text" name="user" class="text" value="<?php echo set_value('user',$this->form_data->user); ?>"/>
                        <?php echo form_error('user'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">password<span style="color:red;">*</span></td>
                    <td><input type="password" name="password" class="text" value="<?php echo set_value('password',$this->form_data->password); ?>"/>
                        <?php echo form_error('password'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">state<span style="color:red;">*</span></td>
                    <td>
                        <select name="state">

                            <option value="0">Không Kích Hoạt</option>
                            <option value="1">Kích Hoạt</option>

                        </select>
                            <?php echo form_error('state'); ?>


                    </td>
                </tr>
                <tr>
                    <td valign="top">Permission<span style="color:red;">*</span></td>
                    <td>
                        <select name="permission">

                            <option value="0">Student</option>
                            <option value="1">Teacher</option>
                            <option value="2">Administrator</option>


                        </select>
                        <?php echo form_error('permission'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">Tên<span style="color:red;">*</span></td>
                    <td><input type="text" name="ten" class="text" value="<?php echo set_value('ten',$this->form_data->ten); ?>"/>
                        <?php echo form_error('ten'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">Số Điện Thoại<span style="color:red;">*</span></td>
                    <td><input type="text" name="sdt" class="text" value="<?php echo set_value('sdt',$this->form_data->sdt); ?>"/>
                        <?php echo form_error('sdt'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">Email<span style="color:red;">*</span></td>
                    <td><input type="text" name="email" class="text" value="<?php echo set_value('email',$this->form_data->email); ?>"/>
                        <?php echo form_error('email'); ?>
                    </td>
                </tr>
                <tr>
                    <td valign="top">Địa chỉ<span style="color:red;">*</span></td>
                    <td><input type="text" name="diachi" class="text" value="<?php echo set_value('diachi',$this->form_data->diachi); ?>"/>
                        <?php echo form_error('diachi'); ?>
                    </td>
                </tr>

                <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" value="Save"/></td>
                </tr>
            </table>
        </div>
    </form>
    <br />
    <?php echo $link_back; ?>
</div>
<?php $this->load->view('admin/inc/footer'); ?>